//--ZZProfIt--
/**********************************************************************
  The MIT License (MIT)
  Copyright (c) 2012 sunriseyuen

  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ***********************************************************************/
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;

using Dot.StreamObject;

namespace Muki.Entity
{
	[Serializable]
		[AttributeMapping(TableName="APRHDTM")]
		public class APRHDTMEntity: EntityObject
		{


#region Field
				private	decimal _AP_AMT=0;
				private	string _AP_ANAY_CODE01="";
				private	string _AP_ANAY_CODE02="";
				private	string _AP_ANAY_CODE03="";
				private	string _AP_ANAY_CODE04="";
				private	string _AP_ANAY_CODE05="";
				private	string _AP_ANAY_CODE06="";
				private	decimal _AP_CCY_AMT=0;
				private	decimal _AP_DET_AMT=0;
				private	string _AP_NO="";
				private	string _AP_ODTP_RMKS="";
				private	string _CCY_CODE="";
				private	string _COMP_CODE="";
				private	string _DEPT_CODE="";
				private	decimal _DOC_AMT=0;
				private	DateTime _DOC_DATE=DateTime.MinValue;
				private	DateTime _DUE_DATE=DateTime.MinValue;
				private	string _GL_NO="";
				private	string _ODTP_CODE="";
				private	string _ODTP_STATUS="";
				private	Int32 _ODTP_XREV=0;
				private	decimal _PAY_AMT=0;
				private	string _PAY_CODE="";
				private	decimal _PAYMENT_AMT=0;
				private	bool _POST_BIT=false;
				private	DateTime _POST_DATE=DateTime.MinValue;
				private	DateTime _REC_DATE=DateTime.MinValue;
				private	decimal _SET_AMT=0;
				private	decimal _SETTLED_AMT=0;
				private	string _VEN_CODE="";
				private	decimal _VIV_AMT=0;
				private	DateTime _VIV_DATE=DateTime.MinValue;
				private	string _VIV_NO="";
				private	decimal _XCHG_RATE=0;
				private	DateTime _ZADD_DATE=DateTime.MinValue;
				private	string _ZADD_USER="";
				private	DateTime _ZCHG_DATE=DateTime.MinValue;
				private	string _ZCHG_FLAG="";
				private	string _ZCHG_USER="";
				private	string _ZSECURITY_CODE1="";
				private	string _ZSECURITY_CODE2="";
				private	string _ZSECURITY_CODE3="";
				private	string _ZSECURITY_CODE4="";
				private	string _ZSECURITY_CODE5="";
				private	string _ZSECURITY_CODE6="";
				private	Int32 _ZSECURITY_RIGHT=0;
#endregion

#region Properties
				//<Summary>
				//APRHDTM,AP_AMT
				//</Summary>
				public decimal AP_AMT
				{
					get { return _AP_AMT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_AP_AMT)
							{
								_AP_AMT = value; 
								this.PropertyChange("AP_AMT");
							}
						}else{
							_AP_AMT = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,AP_ANAY_CODE01
				//</Summary>
				public string AP_ANAY_CODE01
				{
					get { return _AP_ANAY_CODE01; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_AP_ANAY_CODE01)
							{
								_AP_ANAY_CODE01 = value; 
								this.PropertyChange("AP_ANAY_CODE01");
							}
						}else{
							_AP_ANAY_CODE01 = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,AP_ANAY_CODE02
				//</Summary>
				public string AP_ANAY_CODE02
				{
					get { return _AP_ANAY_CODE02; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_AP_ANAY_CODE02)
							{
								_AP_ANAY_CODE02 = value; 
								this.PropertyChange("AP_ANAY_CODE02");
							}
						}else{
							_AP_ANAY_CODE02 = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,AP_ANAY_CODE03
				//</Summary>
				public string AP_ANAY_CODE03
				{
					get { return _AP_ANAY_CODE03; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_AP_ANAY_CODE03)
							{
								_AP_ANAY_CODE03 = value; 
								this.PropertyChange("AP_ANAY_CODE03");
							}
						}else{
							_AP_ANAY_CODE03 = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,AP_ANAY_CODE04
				//</Summary>
				public string AP_ANAY_CODE04
				{
					get { return _AP_ANAY_CODE04; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_AP_ANAY_CODE04)
							{
								_AP_ANAY_CODE04 = value; 
								this.PropertyChange("AP_ANAY_CODE04");
							}
						}else{
							_AP_ANAY_CODE04 = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,AP_ANAY_CODE05
				//</Summary>
				public string AP_ANAY_CODE05
				{
					get { return _AP_ANAY_CODE05; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_AP_ANAY_CODE05)
							{
								_AP_ANAY_CODE05 = value; 
								this.PropertyChange("AP_ANAY_CODE05");
							}
						}else{
							_AP_ANAY_CODE05 = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,AP_ANAY_CODE06
				//</Summary>
				public string AP_ANAY_CODE06
				{
					get { return _AP_ANAY_CODE06; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_AP_ANAY_CODE06)
							{
								_AP_ANAY_CODE06 = value; 
								this.PropertyChange("AP_ANAY_CODE06");
							}
						}else{
							_AP_ANAY_CODE06 = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,AP_CCY_AMT
				//</Summary>
				public decimal AP_CCY_AMT
				{
					get { return _AP_CCY_AMT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_AP_CCY_AMT)
							{
								_AP_CCY_AMT = value; 
								this.PropertyChange("AP_CCY_AMT");
							}
						}else{
							_AP_CCY_AMT = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,AP_DET_AMT
				//</Summary>
				public decimal AP_DET_AMT
				{
					get { return _AP_DET_AMT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_AP_DET_AMT)
							{
								_AP_DET_AMT = value; 
								this.PropertyChange("AP_DET_AMT");
							}
						}else{
							_AP_DET_AMT = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,AP_NO
				//</Summary>
					[AttributeMapping(PrimaryKey=true)]
				public string AP_NO
				{
					get { return _AP_NO; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_AP_NO)
							{
								_AP_NO = value; 
								this.PropertyChange("AP_NO");
							}
						}else{
							_AP_NO = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,AP_ODTP_RMKS
				//</Summary>
				public string AP_ODTP_RMKS
				{
					get { return _AP_ODTP_RMKS; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_AP_ODTP_RMKS)
							{
								_AP_ODTP_RMKS = value; 
								this.PropertyChange("AP_ODTP_RMKS");
							}
						}else{
							_AP_ODTP_RMKS = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,CCY_CODE
				//</Summary>
				public string CCY_CODE
				{
					get { return _CCY_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CCY_CODE)
							{
								_CCY_CODE = value; 
								this.PropertyChange("CCY_CODE");
							}
						}else{
							_CCY_CODE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,COMP_CODE
				//</Summary>
				public string COMP_CODE
				{
					get { return _COMP_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_COMP_CODE)
							{
								_COMP_CODE = value; 
								this.PropertyChange("COMP_CODE");
							}
						}else{
							_COMP_CODE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,DEPT_CODE
				//</Summary>
				public string DEPT_CODE
				{
					get { return _DEPT_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_DEPT_CODE)
							{
								_DEPT_CODE = value; 
								this.PropertyChange("DEPT_CODE");
							}
						}else{
							_DEPT_CODE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,DOC_AMT
				//</Summary>
				public decimal DOC_AMT
				{
					get { return _DOC_AMT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_DOC_AMT)
							{
								_DOC_AMT = value; 
								this.PropertyChange("DOC_AMT");
							}
						}else{
							_DOC_AMT = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,DOC_DATE
				//</Summary>
				public DateTime DOC_DATE
				{
					get { return _DOC_DATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_DOC_DATE)
							{
								_DOC_DATE = value; 
								this.PropertyChange("DOC_DATE");
							}
						}else{
							_DOC_DATE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,DUE_DATE
				//</Summary>
				public DateTime DUE_DATE
				{
					get { return _DUE_DATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_DUE_DATE)
							{
								_DUE_DATE = value; 
								this.PropertyChange("DUE_DATE");
							}
						}else{
							_DUE_DATE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,GL_NO
				//</Summary>
				public string GL_NO
				{
					get { return _GL_NO; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_GL_NO)
							{
								_GL_NO = value; 
								this.PropertyChange("GL_NO");
							}
						}else{
							_GL_NO = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ODTP_CODE
				//</Summary>
				public string ODTP_CODE
				{
					get { return _ODTP_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ODTP_CODE)
							{
								_ODTP_CODE = value; 
								this.PropertyChange("ODTP_CODE");
							}
						}else{
							_ODTP_CODE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ODTP_STATUS
				//</Summary>
				public string ODTP_STATUS
				{
					get { return _ODTP_STATUS; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ODTP_STATUS)
							{
								_ODTP_STATUS = value; 
								this.PropertyChange("ODTP_STATUS");
							}
						}else{
							_ODTP_STATUS = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ODTP_XREV
				//</Summary>
				public Int32 ODTP_XREV
				{
					get { return _ODTP_XREV; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ODTP_XREV)
							{
								_ODTP_XREV = value; 
								this.PropertyChange("ODTP_XREV");
							}
						}else{
							_ODTP_XREV = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,PAY_AMT
				//</Summary>
				public decimal PAY_AMT
				{
					get { return _PAY_AMT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_PAY_AMT)
							{
								_PAY_AMT = value; 
								this.PropertyChange("PAY_AMT");
							}
						}else{
							_PAY_AMT = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,PAY_CODE
				//</Summary>
				public string PAY_CODE
				{
					get { return _PAY_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_PAY_CODE)
							{
								_PAY_CODE = value; 
								this.PropertyChange("PAY_CODE");
							}
						}else{
							_PAY_CODE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,PAYMENT_AMT
				//</Summary>
				public decimal PAYMENT_AMT
				{
					get { return _PAYMENT_AMT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_PAYMENT_AMT)
							{
								_PAYMENT_AMT = value; 
								this.PropertyChange("PAYMENT_AMT");
							}
						}else{
							_PAYMENT_AMT = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,POST_BIT
				//</Summary>
				public bool POST_BIT
				{
					get { return _POST_BIT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_POST_BIT)
							{
								_POST_BIT = value; 
								this.PropertyChange("POST_BIT");
							}
						}else{
							_POST_BIT = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,POST_DATE
				//</Summary>
				public DateTime POST_DATE
				{
					get { return _POST_DATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_POST_DATE)
							{
								_POST_DATE = value; 
								this.PropertyChange("POST_DATE");
							}
						}else{
							_POST_DATE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,REC_DATE
				//</Summary>
				public DateTime REC_DATE
				{
					get { return _REC_DATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_REC_DATE)
							{
								_REC_DATE = value; 
								this.PropertyChange("REC_DATE");
							}
						}else{
							_REC_DATE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,SET_AMT
				//</Summary>
				public decimal SET_AMT
				{
					get { return _SET_AMT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_SET_AMT)
							{
								_SET_AMT = value; 
								this.PropertyChange("SET_AMT");
							}
						}else{
							_SET_AMT = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,SETTLED_AMT
				//</Summary>
				public decimal SETTLED_AMT
				{
					get { return _SETTLED_AMT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_SETTLED_AMT)
							{
								_SETTLED_AMT = value; 
								this.PropertyChange("SETTLED_AMT");
							}
						}else{
							_SETTLED_AMT = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,VEN_CODE
				//</Summary>
				public string VEN_CODE
				{
					get { return _VEN_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_VEN_CODE)
							{
								_VEN_CODE = value; 
								this.PropertyChange("VEN_CODE");
							}
						}else{
							_VEN_CODE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,VIV_AMT
				//</Summary>
				public decimal VIV_AMT
				{
					get { return _VIV_AMT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_VIV_AMT)
							{
								_VIV_AMT = value; 
								this.PropertyChange("VIV_AMT");
							}
						}else{
							_VIV_AMT = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,VIV_DATE
				//</Summary>
				public DateTime VIV_DATE
				{
					get { return _VIV_DATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_VIV_DATE)
							{
								_VIV_DATE = value; 
								this.PropertyChange("VIV_DATE");
							}
						}else{
							_VIV_DATE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,VIV_NO
				//</Summary>
				public string VIV_NO
				{
					get { return _VIV_NO; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_VIV_NO)
							{
								_VIV_NO = value; 
								this.PropertyChange("VIV_NO");
							}
						}else{
							_VIV_NO = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,XCHG_RATE
				//</Summary>
				public decimal XCHG_RATE
				{
					get { return _XCHG_RATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_XCHG_RATE)
							{
								_XCHG_RATE = value; 
								this.PropertyChange("XCHG_RATE");
							}
						}else{
							_XCHG_RATE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ZADD_DATE
				//</Summary>
				public DateTime ZADD_DATE
				{
					get { return _ZADD_DATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZADD_DATE)
							{
								_ZADD_DATE = value; 
								this.PropertyChange("ZADD_DATE");
							}
						}else{
							_ZADD_DATE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ZADD_USER
				//</Summary>
				public string ZADD_USER
				{
					get { return _ZADD_USER; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZADD_USER)
							{
								_ZADD_USER = value; 
								this.PropertyChange("ZADD_USER");
							}
						}else{
							_ZADD_USER = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ZCHG_DATE
				//</Summary>
				public DateTime ZCHG_DATE
				{
					get { return _ZCHG_DATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZCHG_DATE)
							{
								_ZCHG_DATE = value; 
								this.PropertyChange("ZCHG_DATE");
							}
						}else{
							_ZCHG_DATE = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ZCHG_FLAG
				//</Summary>
				public string ZCHG_FLAG
				{
					get { return _ZCHG_FLAG; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZCHG_FLAG)
							{
								_ZCHG_FLAG = value; 
								this.PropertyChange("ZCHG_FLAG");
							}
						}else{
							_ZCHG_FLAG = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ZCHG_USER
				//</Summary>
				public string ZCHG_USER
				{
					get { return _ZCHG_USER; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZCHG_USER)
							{
								_ZCHG_USER = value; 
								this.PropertyChange("ZCHG_USER");
							}
						}else{
							_ZCHG_USER = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ZSECURITY_CODE1
				//</Summary>
				public string ZSECURITY_CODE1
				{
					get { return _ZSECURITY_CODE1; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE1)
							{
								_ZSECURITY_CODE1 = value; 
								this.PropertyChange("ZSECURITY_CODE1");
							}
						}else{
							_ZSECURITY_CODE1 = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ZSECURITY_CODE2
				//</Summary>
				public string ZSECURITY_CODE2
				{
					get { return _ZSECURITY_CODE2; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE2)
							{
								_ZSECURITY_CODE2 = value; 
								this.PropertyChange("ZSECURITY_CODE2");
							}
						}else{
							_ZSECURITY_CODE2 = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ZSECURITY_CODE3
				//</Summary>
				public string ZSECURITY_CODE3
				{
					get { return _ZSECURITY_CODE3; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE3)
							{
								_ZSECURITY_CODE3 = value; 
								this.PropertyChange("ZSECURITY_CODE3");
							}
						}else{
							_ZSECURITY_CODE3 = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ZSECURITY_CODE4
				//</Summary>
				public string ZSECURITY_CODE4
				{
					get { return _ZSECURITY_CODE4; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE4)
							{
								_ZSECURITY_CODE4 = value; 
								this.PropertyChange("ZSECURITY_CODE4");
							}
						}else{
							_ZSECURITY_CODE4 = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ZSECURITY_CODE5
				//</Summary>
				public string ZSECURITY_CODE5
				{
					get { return _ZSECURITY_CODE5; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE5)
							{
								_ZSECURITY_CODE5 = value; 
								this.PropertyChange("ZSECURITY_CODE5");
							}
						}else{
							_ZSECURITY_CODE5 = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ZSECURITY_CODE6
				//</Summary>
				public string ZSECURITY_CODE6
				{
					get { return _ZSECURITY_CODE6; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE6)
							{
								_ZSECURITY_CODE6 = value; 
								this.PropertyChange("ZSECURITY_CODE6");
							}
						}else{
							_ZSECURITY_CODE6 = value; 
						}
					}
				}
				//<Summary>
				//APRHDTM,ZSECURITY_RIGHT
				//</Summary>
				public Int32 ZSECURITY_RIGHT
				{
					get { return _ZSECURITY_RIGHT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_RIGHT)
							{
								_ZSECURITY_RIGHT = value; 
								this.PropertyChange("ZSECURITY_RIGHT");
							}
						}else{
							_ZSECURITY_RIGHT = value; 
						}
					}
				}
#endregion
		}
}
